// import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'

export function getToken() {
  return localStorage.getItem(TokenKey) || sessionStorage.getItem(TokenKey)
}

export function setToken(token,rember) {
  if(rember){
    localStorage.setItem(TokenKey,token)
  }else{
    sessionStorage.setItem(TokenKey,token)
  }
}

export function removeToken() {
  localStorage.removeItem(TokenKey)
  sessionStorage.removeItem(TokenKey)
}
